package com.nuaa.service.overseas.inter;

import java.util.Map;

import com.nuaa.domain.overseas.LocalDisEntity;
import com.nuaa.formmodel.LocalHandForm;
import com.nuaa.utils.AjaxMsg;
import com.nuaa.utils.DataGrid;
import com.nuaa.utils.PageInfo;

public interface LocalDisServiceInter {
	public AjaxMsg subLocalOrder(LocalDisEntity entity);
	public DataGrid<Map<String, Object>> getLocalDisOrders(PageInfo pager,String customer_no,String orderNo,String tmFrom,String tmTo);
	/**
	 * 根据localOrder实体更新
	 * @param lcoalOrder
	 */
	public void update(LocalDisEntity lcoalOrder);
	
	/**
	 * 根据id获取一个localDisEntity的实例
	 * @param id
	 * @return
	 */
	public LocalDisEntity getById(Integer id);
	/**
	 * 获取所有海外仓本地配送订单，管理员端作为发货
	 * @return
	 */
	public DataGrid<Map<String, Object>> getDeliverOrders(PageInfo pager);
	
	
	/**
	 * 获取未发货订单
	 * @param pager
	 * @return
	 */
	public DataGrid<Map<String, Object>> getNonDelivaryLocalOrders(PageInfo pager);
	/**
	 * 获取未审核订单
	 * @param pager
	 * @return
	 */
	public DataGrid<Map<String, Object>> getLocalDisUncheck(PageInfo pager);
	/**
	 * 获取所有已发货订单
	 * @param pager
	 * @return
	 */
	public DataGrid<Map<String, Object>> getDeliveredOrders(PageInfo pager);
	
	public DataGrid<Map<String, Object>> getNoDeliveredOrders(PageInfo pager, String customer_no, String orderNo,
			String tmFrom, String tmTo);
	/**
	 * 对指定用户编码下所有本地未配送订单进行发货
	 * @param customerNo
	 * @return
	 */
	public AjaxMsg deliverOrders(String customerNo);
	/**
	 * 根据订单号获取订单信息
	 * @param orderNo
	 * @return
	 */
	public LocalDisEntity getByOrderNo(String orderNo);
	
	public AjaxMsg saveLocalModOrder(LocalDisEntity entity);
	
	public DataGrid<Map<String, Object>> getWaitLocalDisOrders(PageInfo pager, String customer_no, String orderNo,
			String tmFrom, String tmTo);
	public DataGrid<Map<String, Object>> getProceLocalDisOrders(PageInfo pager, String customer_no, String orderNo,
			String tmFrom, String tmTo);
	public AjaxMsg saveHand(String id, LocalHandForm form);
	public DataGrid<Map<String, Object>> getLocalNoDeliveredDetail(PageInfo pager, String customer_no);
	public DataGrid<Map<String, Object>> getFinishLocalDisOrders(PageInfo pager, String customer_no, String orderNo,
			String tmFrom, String tmTo);
}
